<!DOCTYPE html>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->
<html>

<head>
  <meta charset="utf-8">
  <!--
        Customize this policy to fit your own app's needs. For more guidance, please refer to the docs:
            https://cordova.apache.org/docs/en/latest/
        Some notes:
            * https://ssl.gstatic.com is required only on Android and is needed for TalkBack to function properly
            * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this:
                * Enable inline JS: add 'unsafe-inline' to default-src
        -->
  <!--  <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">-->
  <meta name="format-detection" content="telephone=no">
  <meta name="msapplication-tap-highlight" content="no">
  <meta name="viewport" content="initial-scale=1, width=device-width, viewport-fit=cover">
  <meta name="color-scheme" content="light dark">
  <link rel="stylesheet" href="css/vant.css">
  <link rel="stylesheet" href="css/index.css">
  <title>案件立案</title>
</head>

<body>
<div id="app" class="app" v-cloak>
  <van-sticky>
    <van-nav-bar title="案件立案" left-text="返回" left-arrow @click-left="onClickLeft" right-text="案件立案"
                 @click-right="clickRight" :border="false"></van-nav-bar>

    <van-tabs v-model:active="activeName" @change="changeTab" background="linear-gradient(to bottom, #1858e7, #1b5ae7)" color="#fff" title-active-color="#fff" title-inactive-color="#ffe" style="position:relative; z-index: 3;" border>
      <van-tab title="户外广告" name="advertising"></van-tab>
      <van-tab title="牌匾" name="plaque"></van-tab>
      <van-tab title="临街门面" name="front"></van-tab>
      <van-tab title="便民市场" name="market"></van-tab>
    </van-tabs>


    <div style="background: linear-gradient(to bottom, #1b5ae7, #779aea); position: relative;z-index: 3;">
      <van-search v-model="searchName" show-action placeholder="请输入搜索关键词" @search="onSearch" @clear="onSearch" @click-right-icon="onSearch" @click-left-icon="onSearch" background="linear-gradient(to bottom, #1b5ae7, #779aea)">
        <template #action>
          <div @click="onClickButton" style="color: #fff;">搜索</div>
        </template>
      </van-search>
    </div>
  </van-sticky>
  <div class="bg-box"></div>
  <!-- 模板 -->
  <div class="list-box">
    <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
      <van-list
        v-model:loading="loading"
        :finished="finished"
        finished-text="没有更多了"
        @load="onLoad"
      >
        <div class="item-box" v-for="(item, index) in list" :key="index" @click="toDetail(item)">
          <div class="item-title">
            <div class="title-txt van-ellipsis">{{ item.caseTitle }}</div>
            <div class="title-status">
              <van-tag :type="statusData[+item.completeFlag].status" size="small" disabled>{{ statusData[+item.completeFlag].txt }}</van-tag>
            </div>
          </div>
          <div class="flex-box">
            <div class="flex-item">
              <span class="item-label">案件编号：</span>{{ item.caseNumber }}
            </div>
          </div>
          <div class="flex-box">
            <div class="flex-item">
              <span class="item-label">案件类型：</span>{{ item.typeName }}
            </div>
          </div>
          <div class="flex-box">
            <div class="flex-item">
              <span class="item-label">创建时间：</span>{{ item.createTime }}
            </div>
          </div>
          <div class="flex-box">
            <div class="flex-item">
              <span class="item-label">剩余时间：</span>{{ item.processLimited }}
            </div>
          </div>
        </div>
      </van-list>
    </van-pull-refresh>
  </div>
</div>
<script src="./js/jquery/jquery.min.js"></script>
<script src="./js/adApi.js"></script>
<script src="./js/vue3.js"></script>
<script src="./js/vant.js"></script>
<script src="js/index.js"></script>
</body>

</html>